package gov.dhs.cis.soa;


public class Constants {
	public static enum DataDirType { I, O };
	public static enum EntityType { 
		APPL, SECCP, INTSW, INTUC, INFLS, INFPS, AGNT, ACTR, DATA, DESC,
		INTR, PROC, SERV, USEC, DREF, PROP, EREF, BPROC, SOPER, ATTR, LSINST
	};
	
	public static final int DESC_TEXT_SIZE = 2048;
	public static final String NL = "\n";
	public static final int IOE_MATUR_REMOVE = 6;
	public static final boolean bResolveSecConfig = false;
	
	public static String getActorType() {
		return ""+EntityType.ACTR;
	}	
	public static String getDataClassType() {
		return ""+EntityType.DATA;
	}	
	public static String getDescriptionType() {
		return ""+EntityType.DESC;
	}	
	public static String getInterfaceType() {
		return ""+EntityType.INTR;
	}	
	public static String getProcessesType() {
		return ""+EntityType.PROC;
	}	
	public static String getServiceType() {
		return ""+EntityType.SERV;
	}	
	public static String getUseCaseType() {
		return ""+EntityType.USEC;
	}
	public static String getBusinessProcessType() {
		return ""+EntityType.BPROC;
	}
	public static String getAgentType() {
		return ""+EntityType.AGNT;
	}
	public static String getApplicationType() {
		return ""+EntityType.APPL;
	}
	public static String getIntegrationUCType() {
		return ""+EntityType.INTUC;
	}
	public static String getInfLSType() {
		return ""+EntityType.INFLS;
	}
	public static String getInfPSType() {
		return ""+EntityType.INFPS;
	}
	
	public static EntityType convert(String sType) {
		EntityType[] array = EntityType.values();
		for(EntityType type : array) {
			if(sType.equalsIgnoreCase(""+type))
				return type;
		}
		return null;
	}
}
